﻿<ResourceDictionary 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ControlTemplate x:Key="creditRowTemplate" TargetType="ListBoxItem">
    <StackPanel Orientation="Horizontal" Background="LightGray" Height="20" Margin="1">
        <TextBlock Text="10/04/2008" Width="100"/>
        <TextBlock Text="2000"  Width="100"/>
        <TextBlock Text="CR"  Width="100"/>
        <TextBlock Text="2500"/>
    </StackPanel>
</ControlTemplate>
<ControlTemplate  x:Key="debitRowTemplate" TargetType="ListBoxItem">
    <StackPanel Orientation="Horizontal" Background="LightBlue" Height="20" Margin="1">
        <TextBlock Text="10/04/2008" Width="100"/>
        <TextBlock Text="2000"  Width="100"/>
        <TextBlock Text="DB"  Width="100"/>
        <TextBlock Text="2500"/>
    </StackPanel>
</ControlTemplate>
</ResourceDictionary>